package io.renren.modules.generator.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.generator.dao.OutOrderItemDao;
import io.renren.modules.generator.entity.OutOrderItemEntity;
import io.renren.modules.generator.service.OutOrderItemService;


@Service("outOrderItemService")
public class OutOrderItemServiceImpl extends ServiceImpl<OutOrderItemDao, OutOrderItemEntity> implements OutOrderItemService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<OutOrderItemEntity> page = this.selectPage(
                new Query<OutOrderItemEntity>(params).getPage(),
                new EntityWrapper<OutOrderItemEntity>()
        );

        return new PageUtils(page);
    }

}
